<?php
/**
 * Created by PhpStorm.
 * User: xiong <1099446868@qq.com>
 * DateTime: 2018/11/5
 * TIME: 22:12
 */

namespace app\index\validate;


class RegisterValidate extends BaseValidate {

    protected $rule = [
        'username' => 'require|isNotEmpty|max:10',
        'password' => 'require|length:6,16',
        'captcha'  => 'require|captcha',
        '__token__'=>'require|token'
    ];

    protected $message = [
        'username.require'    => '用户名必填',
        'username.isNotEmpty' => '用户名必填',
        'username.max'        => '用户名字符数小于10',
        'password.require'    => '密码必填',
        'password.length'     => '密码字符数范围是6-16',
        'captcha.require'      => '验证码必填',
        'captcha.captcha'     => '验证码不正确',
        '__token__.token'=>'正在拼命加载中>>>>'
    ];
}